package com.lcf.system.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.lcf.framework.vo.PageVO;
import com.lcf.system.dto.UserOrderDTO;
import com.lcf.system.entity.UserOrder;
import com.lcf.system.query.UserOrderPageQuery;
import com.lcf.system.vo.UserOrderVO;

/**
 * 订单(UserOrder)表服务接口
 *
 * @author lcf
 * @since 2025-04-24 21:14:33
 */
public interface UserOrderService extends IService<UserOrder> {
    /**
     * 下单
     */
    boolean insert(UserOrderDTO dto);
    /**
     * 付款
     */
    boolean pay(Long orderId);
    /**
     * 发货
     */
    boolean deliver(Long orderId);
    /**
     * 确认收货
     */
    boolean confirm(Long orderId);
    /**
     * 退款
     */
    boolean refund(Long orderId);
    /**
     * 订单分页
     */
    PageVO<UserOrderVO> page(UserOrderPageQuery query);
    /**
     * 详情
     */
    UserOrderVO detail(long id);
    /**
     * 订单分页
     */
    PageVO<UserOrderVO> pageAll(UserOrderPageQuery query);
}


